package com.probox.common.entity.domain.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品评论信息对象 product_comment
 *
 *
 * @date 2021-06-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_comment")
public class ProductComment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    //默认主键自增
    @TableId(value = "COMMENT_UID", type = IdType.AUTO)
    private Long commentUid;
    /**
     * 评论类型
     */
    @Excel(name = "评论类型")
    private String commentType;
    /**
     * 图片地址，多种以,逗号分开
     */
    @Excel(name = "图片地址，多种以,逗号分开")
    private String imagesUrl;
    /**
     * 内容
     */
    @Excel(name = "内容")
    private String commentContent;
    /**
     * 评论视频
     */
    @Excel(name = "评论视频")
    private String commentVideo;
    /**
     * 评论时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;
    /**
     * 商品UID
     */
    @Excel(name = "商品UID")
    private Long productUid;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String productName;
    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String productImgUrl;
    /**
     * 状态（1有效-1删除
     */
    @Excel(name = "状态", readConverterExp = "状态（1有效-1删除")
    private String dataStatus;
    /**
     * $column.columnComment
     */
    @Excel(name = "状态", readConverterExp = "$column.readConverterExp()")
    private Long updateUid;
    /**
     * $column.columnComment
     */
    @Excel(name = "状态", readConverterExp = "$column.readConverterExp()")
    private Date updateTime;
    /**
     * 评论人ID
     */
    @Excel(name = "评论人ID")
    private Long memberUid;
    /**
     * 评论账号
     */
    @Excel(name = "评论账号")
    private String memberName;
    /**
     * 评论人昵称
     */
    @Excel(name = "评论人昵称")
    private String memberNickName;
    /**
     * 评论人头像
     */
    @Excel(name = "评论人头像")
    private String memberHeadUrl;
    /**
     * 商家服务评分满分50分，即5星
     */
    @Excel(name = "商家服务评分满分50分，即5星")
    private Integer serviceScore;
    /**
     * 产品评分满分50分，即5星
     */
    @Excel(name = "产品评分满分50分，即5星")
    private Integer productScore;
    /**
     * 物流评分满分50分，即5星
     */
    @Excel(name = "物流评分满分50分，即5星")
    private Integer logisticsScore;
    /**
     * 是否展示到前端 1展示 0不展示
     */
    @Excel(name = "是否展示到前端 1展示 0不展示")
    private String isShow;
    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Long orderUid;
    /**
     * $column.columnComment
     */
    @Excel(name = "订单ID")
    private Long skuUid;
    /**
     * 平台ID
     */
    @Excel(name = "平台ID")
    private Long platformUid;
    /**
     * 回复内容
     */
    @Excel(name = "回复内容")
    private String merchantTxt;
    /**
     * 回复昵称
     */
    @Excel(name = "回复昵称")
    private String merchantName;
    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date merchantTime;

    /**
     * 订单编号
     */
    private String orderNo;

}
